package com.example.basefream.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
* @author L-HN
* @since 2022-04-27
*/
@ApiModel(value ="行政区划表")
@Data
@Accessors(chain = true)
@JsonInclude(value = JsonInclude.Include.NON_DEFAULT)
public class CmaPcArea extends Model<CmaPcArea> {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域编码")
    @ExcelProperty("区域编码")
    private String areaId;

    @ApiModelProperty(value = "父级编号")
    @ExcelProperty("父级编号")
    private String parentId;

    @ApiModelProperty(value = "所有父级编号")
    @ExcelProperty("所有父级编号")
    private String parentIds;

    @ApiModelProperty(value = "本级排序号（升序）")
    @ExcelProperty("本级排序号")
    private BigDecimal treeSort;

    @ApiModelProperty(value = "所有级别排序号")
    @ExcelProperty("所有级别排序号")
    private String treeSorts;

    @ApiModelProperty(value = "是否最末级")
    @ExcelProperty("是否最末级")
    private String treeLeaf;

    @ApiModelProperty(value = "层次级别")
    @ExcelProperty("层次级别")
    private BigDecimal treeLevel;

    @ApiModelProperty(value = "全节点名")
    @ExcelProperty("全节点名")
    private String treeNames;

    @ApiModelProperty(value = "区域名称")
    @ExcelProperty("区域名称")
    private String areaName;

    @ApiModelProperty(value = "区域类型")
    @ExcelProperty("区域类型")
    private String areaType;

    @ApiModelProperty(value = "状态：0正常 1删除 2停用")
    @ExcelProperty("状态")
    private String status;

    @ApiModelProperty(value = "创建者")
    @ExcelProperty("创建者")
    private String createBy;

    @ApiModelProperty(value = "最后一次更新者")
    @ExcelProperty("最后一次更新者")
    private String updateBy;

    @ApiModelProperty(value = "备注")
    @ExcelProperty("备注")
    private String remarks;

    @ApiModelProperty(value = "区域代码")
    @ExcelProperty("区域代码")
    private String areaCode;

    @ApiModelProperty(value = "经纬度")
    @ExcelProperty("经纬度")
    private String center;



@Override
protected Serializable pkVal() {
    return this.areaId;
}
}